import store from "@/store";
const buttons = store.state.user;

export default function has(value) {
  // 判断是否有权限
  if (buttons.buttons.includes(value)) {
    return true;
  }
  else {
    return false;
  }

} 